package meidi;

import java.util.Scanner;

/**
 * @author Hang
 * @date 2022/10/10
 * @project AutumnOffer
 * @description
 **/
public class solution2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        double[] l = new double[n];
        double sum = 0.0;
        for(int i=0;i<n;i++){
            l[i] = sc.nextDouble();
            sum += l[i];
        }

        double aver = sum / k;
        int s = 0;
        for(int i=0;i<n;i++){
            s += (int)(l[i] / aver);
        }
        while(s != k){
            s = 0;
            aver -= 0.01;
            for(int i=0;i<n;i++){
                s += (int)(l[i] / aver);
            }
        }
        System.out.printf("%.2f",aver);
    }
}
